package com.library.service;

import com.library.entity.Book;
import com.library.entity.Borrow;

import java.util.List;

public interface BookService {

    List<Book> findAll(int page);
    int getPages();
    void addBorrow(Integer bookId,Integer readerId);
    List<Borrow> findAllBorrowByReaderID(Integer id,Integer page);
    List<Borrow> findAllBorrowByState(Integer state,Integer page);
    int getBorrowPagesByReaderId(Integer id);
    int getBorrowPagesByState(Integer state);
    void handleBorrow(Integer borrowId,Integer state,Integer adminId);
}
